from django.conf.urls.defaults import *

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
     (r'^$', ('sicp.ex.views.default')),
     (r'^default$', ('sicp.ex.views.default')),
     (r'^people$', ('sicp.ex.views.people')),
     (r'^chapters', ('sicp.ex.views.chapters')),
     (r'^chapter/(?P<chpt_id>.+)', ('sicp.ex.views.chapter')),
    # Example:
    # (r'^sicp/', include('sicp.foo.urls')),

    # Uncomment the admin/doc line below to enable admin documentation:
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
     (r'^admin/', include(admin.site.urls)),
     (r'^.*$', ('sicp.ex.views.hello')),
)
